<!--#if($params.get('id') == '')-->
<!--#set($assort = $fn.assort_no($params.get('id')))-->
<!--#set($where = "AND c.NO LIKE '17%' AND CONCAT(a.TITLE,a.SUMMARY) LIKE '%$params.keyword%'")-->
<!--#else-->
<!--#set($assort = $fn.assort_no($params.get('id')))-->
<!--#set($where = "AND c.NO LIKE '17%' AND c.ROW_ID = '$assort.ROW_ID'  AND CONCAT(a.TITLE,a.SUMMARY) LIKE '%$params.keyword%'")-->
<!--#end-->
<!--#set($page_title = "通讯录 - $setting.sysname")-->

<!--$pager.setPageSize(6)-->
<!--$pager.setQueryString("id=$params.id&keyword=$params.keyword")-->

<!DOCTYPE html>
<html>
<head>
#parse("tpl/gabz/meta.htm")
</head>
<body>
	#parse("tpl/gabz/header.htm")
	
	<div class="contact">	
		<table align="center" width="1000" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td colspan="2">
					<div class="crumbs">
						<span>您的位置</span>
						<span>：</span>
						<span><a href="index.htm" title="首页">首页</a></span>
						<span>&gt</span>
						<span class="current">通讯录</span>
					</div>
				</td>
			</tr>
			<tr>
				<td width="237" height="651" valign="top" class="sdiebar">
					<table width="210" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td height="58"></td>
						</tr>
						<tr>
							<td height="47" align="center" valign="center">
								<div class="search" style="width:180px;">
									<form action="contact.htm" method="post">
										<input type="text" placeholder="请输入姓名" name="keyword" style="width:178px;" size="10" maxlength="20" value="${params.keyword}"/>
										<p class="button">
											<button type="submit" name="btnSearch" id="btn_Search"></button>
										</p>
									</form>
								</div>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<ul>
									<!--#foreach($assort in $fn.assorts_no('17'))-->
									<!--#if($assort.NO == $params.id)-->								
									<li>										
										<a href="contact.htm?id=${assort.NO}" title="${assort.NAME}" style="color:#f00; font-weight:bold;">${assort.NAME}</a>										
									</li>
									<!--#else-->
									<li>										
										<a href="contact.htm?id=${assort.NO}" title="${assort.NAME}">${assort.NAME}</a>										
									</li>
									<!--#end-->
									<!--#end-->
								</ul>
							</td>
						</tr>
					</table>
				</td>
				<td width="761" valign="top">
					<table class="main" width="761" cellpadding="0" cellspacing="0" border="0">
						<!--#foreach($articles in $fn.article_chunk('', $pager, $where, '', true, 2))-->
						<tr>
							<!--#foreach($article in $articles)-->
							<td width="388" height="222" valign="top">
								<table class="info" width="373" height="206" cellpadding="0" cellspacing="0">
									<tr>
										<td width="165">
											<table width="165" cellpadding="0" cellspacing="0">
												<tr>
													<td align="center">
														<!--#if($article.IMG && $article.IMG.length() > 10)-->
														<img src="${article.IMG}" width="120" height="160" border="0"/>
														<!--#else-->
														<img src="$THEME/images/no-picture.jpg" width="120" height="160" border="0"/>
														<!--#end-->
													</td>
												</tr>
											</table>											
										</td>
										<td>
											<!--#set($article.CONTENT = $article.CONTENT.replace('{USERNAME}', $article.TITLE))-->
											<!--#set($article.CONTENT = $article.CONTENT.replace('{DEPARTMENT}', $article.NAME))-->
											${article.CONTENT}
										</td>
									</tr>									
								</table>
							</td>
							<!--#end-->
						</tr>
						<!--#end-->
					</table>
				</td>
			</tr>
			<tr>
				<td height="50"></td>
				<td align="center">$pager</td>
			<tr>
		</table>
	</div>
	
	#parse("tpl/gabz/footer.htm")
</body>
</html>